<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateOphthalmologyOrdinaryTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('st_ophthalmology_ordinary', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('record_id')->comment('病例id');
            $table->string('left',20)->comment('左眼');
            $table->string('right',20)->comment('右眼');
            $table->unsignedTinyInteger('inspect_type')->default(1)->comment('检查类型 1视力(矫正) 2眼科常规');
            $table->unsignedTinyInteger('routine_type')->default(0)->comment('眼科常规 1眼压(mmHg) 2眼前节 3晶状体(请描述混浊情况) 4玻璃体(请描述混浊情况)');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('st_ophthalmology_ordinary');
    }
}
